-module(simple_sup).
-behaviour(supervisor).

-export([start/0, init/1]).

start() -> 
    supervisor:start_link({local, simple_supervisor}, ?MODULE, nil).

init(_) ->
    {ok, 
        {{one_for_one, 5, 1000},
            [
            {packet,
                {packet_assembler, start, []},
                permanent, 500, worker, [packet_assembler]},
            {server,
                {kv, start, []},
                permanent, 500, worker, [kv]},
            {logger,
                {simple_logger, start, []},
                permanent, 500, worker, [simple_logger]}]}}.
